/// data : [{"detailId":1,"travelId":1,"title":"孔庙","description":"孔庙位于曲阜市内，是一座规模庞大的祭祀孔子的庙宇，它是在孔子的故居上改建而成的。曲阜的孔庙是世界文化遗产，与北京故宫、承德避暑山庄、泰安岱庙齐名的中国四大古建筑群之一，这里的建筑群宏伟庞大，留有许多古迹与历史故事。","createTime":"2021-10-16T15:06:14.000+00:00","updateTime":"2021-10-16T15:09:08.000+00:00","place":"三孔·孔庙"}]
/// status : 200
/// msg : "ok"

class DetailInfo {
  DetailInfo({
      List<DetailInfoItem>? data,
      int? status, 
      String? msg,}){
    _data = data;
    _status = status;
    _msg = msg;
}

  DetailInfo.fromJson(dynamic json) {
    if (json['data'] != null) {
      _data = [];
      json['data'].forEach((v) {
        _data?.add(DetailInfoItem.fromJson(v));
      });
    }
    _status = json['status'];
    _msg = json['msg'];
  }
  List<DetailInfoItem>? _data;
  int? _status;
  String? _msg;

  List<DetailInfoItem>? get data => _data;
  int? get status => _status;
  String? get msg => _msg;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_data != null) {
      map['data'] = _data?.map((v) => v.toJson()).toList();
    }
    map['status'] = _status;
    map['msg'] = _msg;
    return map;
  }

}

/// detailId : 1
/// travelId : 1
/// title : "孔庙"
/// description : "孔庙位于曲阜市内，是一座规模庞大的祭祀孔子的庙宇，它是在孔子的故居上改建而成的。曲阜的孔庙是世界文化遗产，与北京故宫、承德避暑山庄、泰安岱庙齐名的中国四大古建筑群之一，这里的建筑群宏伟庞大，留有许多古迹与历史故事。"
/// createTime : "2021-10-16T15:06:14.000+00:00"
/// updateTime : "2021-10-16T15:09:08.000+00:00"
/// place : "三孔·孔庙"

class DetailInfoItem {
  DetailInfoItem({
      int? detailId, 
      int? travelId, 
      String? title, 
      String? description, 
      String? createTime, 
      String? updateTime, 
      String? place,}){
    _detailId = detailId;
    _travelId = travelId;
    _title = title;
    _description = description;
    _createTime = createTime;
    _updateTime = updateTime;
    _place = place;
}

  DetailInfoItem.fromJson(dynamic json) {
    _detailId = json['detailId'];
    _travelId = json['travelId'];
    _title = json['title'];
    _description = json['description'];
    _createTime = json['createTime'];
    _updateTime = json['updateTime'];
    _place = json['place'];
  }
  int? _detailId;
  int? _travelId;
  String? _title;
  String? _description;
  String? _createTime;
  String? _updateTime;
  String? _place;

  int? get detailId => _detailId;
  int? get travelId => _travelId;
  String? get title => _title;
  String? get description => _description;
  String? get createTime => _createTime;
  String? get updateTime => _updateTime;
  String? get place => _place;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['detailId'] = _detailId;
    map['travelId'] = _travelId;
    map['title'] = _title;
    map['description'] = _description;
    map['createTime'] = _createTime;
    map['updateTime'] = _updateTime;
    map['place'] = _place;
    return map;
  }

}